<template>
<div class="bp">{{ msg }}{{ck}}
    <div>啦啦啦,银行名字:{{ckck}}</div>
    <router-link to="/">首页</router-link>
    <router-link :to="{ path: 'user', query: { plan: 'private' }}">去user页面</router-link>
    <router-link to="/goods">去goods页面</router-link>
    <div @click="getSth">点我会出console</div>
    <div>{{axData}}</div>
    <img :src="logoicon" style="width:100px;height:100px;" />
    <userss />
  </div>
</template>

<script>
import User from '@/components/user.vue';
export default {
    components:{
        'userss':User
    },
    props: ['ck'],
    data() {
        return {
            msg: '我是goods组件!',
            ckck:this.$store.state.bankName,
            axData: '',
            logoicon: require('../assets/logo.png')
        }
    },
    methods: {
        getSth: function () {
            this.$axios.get('/api/banner/acai_banners.php?pgid=2')
                .then((response) => {
                    console.log(response);
                    this.axData = response.data
                })
                .catch(
                    function (err) {
                        console.log('错误', err)
                    }
                )
        }
    }
}
</script>

<style scoped>
.bp {
    color: #38f;
}
</style>
